#!/bin/bash


# 初始化
python3 manage.py inited

# 启动异步组件服务
# [DEBUG|INFO|WARNING|ERROR|CRITICAL|FATAL]
# python3 manage.py celery worker --loglevel=info --logfile=/opt/logs/celery_worker.log &
nohup celery -A iClouds worker -l INFO -f /opt/logs/celery_worker.log &

# 用于开发环境的项目单线程启动
python3 manage.py runserver 0.0.0.0:8000